import request from '@/utils/request'

// 查询医学建议列表
export function listHealthAdvice(query) {
  return request({
    url: '/suggestions/HealthAdvice/list',
    method: 'get',
    params: query
  })
}

// 查询医学建议详细
export function getHealthAdvice(id) {
  return request({
    url: '/suggestions/HealthAdvice/' + id,
    method: 'get'
  })
}

// 新增医学建议
export function addHealthAdvice(data) {
  return request({
    url: '/suggestions/HealthAdvice',
    method: 'post',
    data: data
  })
}

// 修改医学建议
export function updateHealthAdvice(data) {
  return request({
    url: '/suggestions/HealthAdvice',
    method: 'put',
    data: data
  })
}

// 删除医学建议
export function delHealthAdvice(id) {
  return request({
    url: '/suggestions/HealthAdvice/' + id,
    method: 'delete'
  })
}
